<html lang="en"> 
<head> 
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> 
<title>Drukowanie</title> 
<script>
function Print(){document.body.offsetHeight;window.print()};
</script> 
</head> 
<body onload="Print()"> 
	<?php echo $content_for_layout;?>
</body>
</html>